read_csv only certain columns

115

read_csv only certain columns -

col_list = ["Name", "Department"]
df = pd.read_csv("sample_file.csv", usecols=col_list)

Comments

Submit
0 Comments